package gat.infrastructure.persistence.po.tg;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bitsun.core.framwork.infrastructure.persistence.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @author: yanshukeji-java
 * @email: yanshukeji-java
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "chat_bind_record", resultMap = "chatBindRecordMap")
public class ChatBindRecordPo extends BasePo<ChatBindRecordPo> implements Serializable{
    private static final long serialVersionUID = 1L;

    public ChatBindRecordPo(){

    }
    public ChatBindRecordPo(Long id){
        this.id = id;
    }

    @TableId(value = "id")
    @TableField(fill = FieldFill.INSERT)
    protected Long id;

    /**
     * 会话id VARCHAR
     */
    private String chatId;

    /**
     * 会话类型 VARCHAR
     */
    private String chatType;

    /**
     * 绑定用户id VARCHAR
     */
    private String bindUserId;

    /**
     * 绑定账号id VARCHAR
     */
    private String bindAccountId;

    /**
     * 账号供应商 VARCHAR
     */
    private String accountSupplier;

    /**
     * 账号余额 BIGINT
     */
    private Long accountBalance;

    /**
     * 预警值 BIGINT
     */
    private Long warningBalance;

    /**
     * tg用户名 VARCHAR
     */
    private String tgUserName;

    /**
     * 主账号id VARCHAR
     */
    private String primaryUid;

    @TableField(fill = FieldFill.INSERT)
    protected LocalDateTime createTime;

    private String botId;
}






